﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using hisonic.WinForm.HisonicControl.CourseGrid;

namespace CourseArraging.UControl
{
    public partial class UCcurriculum : UserControl
    {
        public CourseTable courseTable;
        public string[] curr = new string[4];

        public UCcurriculum()
        {
            InitializeComponent();
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            this.courseTable = new CourseTable(this.dataGrid1, 7, 0, 2, 2, 2);
            // 设置表头
            this.courseTable.SetCaptionText("测试用课程表");
            // 设置列宽
            this.courseTable.SetColumnWidth(150); 
            // 设置课程
            //this.courseTable.SetCellData(3, 1, new object(), "语文");
            //this.courseTable.SetCellData(3, 0, new object(), "化学");
            //this.courseTable.SetCellData(5, 6, new object(), "物理");
            //this.courseTable.SetCellData(2, 5, new object(), "数学");
        }
    }
}
